using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Graphs
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}

		CGraph gr;
		private void button1_Click(object sender, EventArgs e)
		{

			
			//gr = GraphInit.Init1();
			//gr = GraphInit.Init2();
			//gr = GraphInit.Init3();//return;
			gr = GraphInit.Init4();//return;



			//GraphUtil.SearchPath(gr, gr.Nodes [0], gr.Nodes [gr.Nodes.Count - 6]);
			//GraphDraw.DrawGraph(gr, g, 30000);



			//Console.WriteLine(gr.Nodes [gr.Nodes.Count - 1].Name);



		}

		private void button2_Click(object sender, EventArgs e)
		{
			Graphics g = this.CreateGraphics();
			g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
			gr.SearchPath(gr.Nodes [0], gr.Nodes [gr.Nodes.Count - 5]);
			//GraphDraw.DrawGraph(gr, g, 20000);
			GraphDraw.DrawGraph(gr, g, 80);

		}
	}
}